<%@ page import="org.ikastola.DateDiscount" %>



<div class="fieldcontain ${hasErrors(bean: feeDiscountInstance, field: 'value', 'error')} required">
	<label for="value">
		<g:message code="feeDiscount.value.label" default="Value" />
		<span class="required-indicator">*</span>
	</label>
 <input type="number" name="value" value="${feeDiscountInstance?.value}" step="${ikastola.Constants.DOUBLE_STEP}" title="El valor debe comenzar con un n&uacute;mero, usar punto como separador de decimal y redondear a 0.05." id="value"/> 
</div>

<div class="fieldcontain ${hasErrors(bean: feeDiscountInstance, field: 'description', 'error')} required">
	<label for="description">
		<g:message code="feeDiscount.description.label" default="Description" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="description" required="" value="${feeDiscountInstance?.description}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: feeDiscountInstance, field: 'iniday', 'error')} required">
	<label for="iniday">
		<g:message code="feeDiscount.iniday.label" default="Iniday" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="iniday" from="${feeDiscountInstance.constraints.iniday.inList}" value="${feeDiscountInstance?.iniday}" />
</div>

<div class="fieldcontain ${hasErrors(bean: feeDiscountInstance, field: 'endday', 'error')} required">
	<label for="endday">
		<g:message code="feeDiscount.endday.label" default="Endday" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="endday" from="${feeDiscountInstance.constraints.endday.inList}" value="${feeDiscountInstance?.endday}" />
</div>

<div class="fieldcontain ${hasErrors(bean: feeDiscountInstance, field: 'fee', 'error')} ">
	<label for="fee">
		<g:message code="feeDiscount.fee.label" default="Aplica sobre" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="fee" optionValue="${{it.name}}" from="${org.ikastola.Fee.list()}" optionKey="id" value="${feeDiscountInstance?.fee}" class="many-to-one" />
</div>

